<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<title>接受巡检计划</title>
	<t:base type="jquery,easyui,tools,DatePicker"></t:base>
	<script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
</head>
<body>
<t:formvalid action="zyInspectionPlanController.do?doBatchEngineerAssignPlan" dialog="true" layout="table" beforeSubmit="beforeSubmit" tiptype="3"
	formid="egAssignMissionForm">
	<input type="hidden" value="${planIds }" id="planIds" name="planIds"/>
	<table >
		<tr>
			<td class="al_r">
				<label>预约上门时间:</label>
			</td>
			<td>
				<span>
					<input id="engineerOrderTime" class="Wdate" onClick="WdatePicker({minDate:'%y-%M-%d'})" 
						name="engineerOrderTime" type="text" style="width: 150px" class="inputxt" datatype="*">
				</span>
			</td>
		</tr>
<%--			<tr>--%>
<%--				<td class="al_r" >--%>
<%--					<label>工程师备注:</label>--%>
<%--				</td>--%>
<%--				<td style="width: 29%;">--%>
<%--					<textarea rows="5" cols="60" name="engineerRemark"></textarea>--%>
<%--				</td>--%>
<%--			</tr>--%>
	</table>
</t:formvalid>
<script type="text/javascript">
function beforeSubmit(){
	var flag = true;
	$.ajax({
		url : "zyInspectionPlanController.do?doJudgePlanOfEngineerRefusePlan",//第二次判断 是否可以接受任务，防止停顿在当前确认提示框期间在app操作
		data : {
			"planIds" : $("#planIds").val(),
			"type" : "assign"
		},
		cache : false,
		dataType : 'json',
		type : 'POST',
		async : false,
		success : function(data){
			if(!data.success){
				flag = false;
				tip(data.msg);
			}
		}
	});
	return flag;
}
</script>
</body>
